<?php
echo $this->Form->create('User');
echo $this->Form->input('name', array('label'=>'Imię'));
echo $this->Form->input('surname', array('label'=>'Nazwisko'));
echo $this->Form->input('address', array('label'=>'Adres'));
echo $this->Form->input('postal_code', array('label'=>'Kod pocztowy'));
echo $this->Form->input('city', array('label'=>'Miasto'));
echo $this->Form->input('email', array('label'=>'E-mail'));
echo $this->Form->input('phone', array('label'=>'Telefon'));
echo $this->Form->input('username', array('label'=>'Login'));
echo $this->Form->input('password', array('label'=>'Hasło'));
echo $this->Form->input('cpassword', array('label'=>'Potwierdzenie hasła', 'type'=>'password'));
if ($isAdmin) {	echo $this->Form->end('Dodaj'); } else { echo $this->Form->end('Zarejestruj'); }
?>